var myChart = echarts.init(document.getElementById("b1"))
var option = {
    title:{
        text:'手机品牌销量对比-沈林涛',
        left: 'center'
    },
    xAxis: {
        TYPE: 'category',
        axisLine: {
            show: false,
        },
        axisLabel: {
            // show: false,
        },
        axisTick: {
            show: false,
        },
        splitLine: {
            show:false,
        },
        data: ["A","B","C","D"],
    },
    yAxis: {
        axisLine: {
            show: false,
        },
        axisLabel: {
            show: false,
        },
        axisTick: {
            show: false,
        },
        splitLine: {
            show:false,
        },
    },
    series:[{
        type:'bar',
        data: [4,1,2,3],
    }],
};
myChart.setOption(option);


var myChart2 = echarts.init(document.getElementById("b2"))
var option2 = {
    title:{
        text:'手机品牌销量对比-沈林涛',
        left: 'center'
    },
    xAxis: {
        TYPE: 'category',
        data: ["A","B","C","D"],
        name: 'X',
    },
    yAxis: {
        name:"Y",
        min:100,
        max:600,
    },
    series:[{
        type:'bar',
        data: [500,400,200,300],
        label: {
            show: true,
            position: 'top',
        },
    }],
};
myChart2.setOption(option2);

var myChart3 = echarts.init(document.getElementById("b3"))
var option3 = {
    title:{
        text:'某品牌销量对比-沈林涛',
        left: 'center'
    },
    xAxis: {
        TYPE: 'category',
        data: ["A","B","C","D"],
        name: 'X',
    },
    yAxis: {
        name:"Y",
        min:100,
        max:600,
    },
    legend: {
        bottom: 'bottom',
    },

    series:[{
        type:'bar',
        name: '手机销量',
        data: [500,400,200,300],
        label: {
            show: true,
            position: 'top',
        },
    },
    {
        type:'bar',
        name:'PC销量',
        data:[400,500,300,200],
        label:{
            show:true,
            position:'top',
        },
    },
    {
        type:'bar',
        name:'PAD销量',
        data:[200,400,500,200],
        label:{
            show:true,
            position:'top',
        },
    },
],
};
myChart3.setOption(option3);


var myChart4 = echarts.init(document.getElementById("b4"));
var option4 = {
    title:{
        text:"沈林涛",
        left: 'center',
    },
    xAxis:{type:'category',
        data: ["A","B","C","D"],
        name: 'x',
    },
    yAxis:{
        name:"y",
        min: 100,
        max: 2000,
    },
    legend: {
        bottom: 'bottom',
    },
    series: [{
        type:'bar',
        name:'手机销量',
        data: [500,400,200,300],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    },{
        type:'bar',
        name: 'PC销量',
        data: [570,300,290,530],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    },{
        type:'bar',
        name: 'ipad销量',
        data: [350,600,170,230],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    }],

};
myChart4.setOption(option4);
 
 
var myChart5 = echarts.init(document.getElementById("b5"));
var option5 = {
    title:{
        text:"沈林涛",
        left: 'center',
    },
    yAxis:{type:'category',
        data: ["A","B","C","D"],
        name: 'x',
    },
    xAxis:{
        name:"y",
        min: 100,
        max: 2000,
    },
    legend: {
        bottom: 'bottom',
    },
    series: [{
        type:'bar',
        name:'手机销量',
        data: [500,400,200,300],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    },{
        type:'bar',
        name: 'PC销量',
        data: [570,300,290,530],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    },{
        type:'bar',
        name: 'ipad销量',
        data: [350,600,170,230],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    }],

};
myChart5.setOption(option5);
 
 
var myChart6 = echarts.init(document.getElementById("b6"));
var option6 = {
    title:{
        text:"沈林涛",
        left: 'center',
    },
    grid: {
        left:'18%',
        right: '20%',
        bottom: '22%',
        top:'19%',
    },
    xAxis:{type:'category',
        data: ["A","B","C","D"],
        name: '国内智能设备厂商',
    },
    yAxis:{
        name:"y",
        min: 100,
        max: 2000,
    },
    legend: {
        bottom: 'bottom',
    },
    series: [{
        type:'bar',
        name:'手机销量',
        data: [500,400,200,300],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    },{
        type:'bar',
        name: 'PC销量',
        data: [570,300,290,530],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    },{
        type:'bar',
        name: 'ipad销量',
        data: [350,600,170,230],
        label: {
            show: true,
            position: 'top',
        },
        stack: '总量',
    }],

};
myChart6.setOption(option6);
